package com.pds.web.testOrganizationInfo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pds.web.testOrganizationInfo.domain.PdsTestOrganizationPerson;

import java.util.List;

public interface PdsTestOrganizationPersonMapper extends BaseMapper<PdsTestOrganizationPerson> {

    /**
     * 新增
     *
     * @param pdsTestOrganizationPerson
     */
    int addPerson(PdsTestOrganizationPerson pdsTestOrganizationPerson);

    /**
     * 删除 -- 根据id
     *
     * @param id
     */
    int deletePerson(Long id);

    /**
     * 更新
     *
     * @param pdsTestOrganizationPerson
     */
    int updatePerson(PdsTestOrganizationPerson pdsTestOrganizationPerson);

    /**
     * 查询 -- 分页/条件：userId，status
     *
     * @param pdsTestOrganizationPerson
     * @return
     */
    List<PdsTestOrganizationPerson> selectPersonList(PdsTestOrganizationPerson pdsTestOrganizationPerson);

    PdsTestOrganizationPerson selectByPersonId(Long id);
}
